package com.demo.model;

import javax.persistence.*;
import org.apache.ibatis.type.Alias;

@Alias("countrylanguage")
@Table(name = "countrylanguage")
public class Countrylanguage extends BaseDO{
    @Id
    @Column(name = "CountryCode")
    private String countryCode;

    @Id
    @Column(name = "Language")
    private String language;

    @Column(name = "IsOfficial")
    private String isOfficial;

    @Column(name = "Percentage")
    private Float percentage;

    /**
     * @return CountryCode
     */
    public String getCountryCode() {
        return countryCode;
    }

    /**
     * @param countryCode
     */
    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode == null ? null : countryCode.trim();
    }

    /**
     * @return Language
     */
    public String getLanguage() {
        return language;
    }

    /**
     * @param language
     */
    public void setLanguage(String language) {
        this.language = language == null ? null : language.trim();
    }

    /**
     * @return IsOfficial
     */
    public String getIsOfficial() {
        return isOfficial;
    }

    /**
     * @param isOfficial
     */
    public void setIsOfficial(String isOfficial) {
        this.isOfficial = isOfficial == null ? null : isOfficial.trim();
    }

    /**
     * @return Percentage
     */
    public Float getPercentage() {
        return percentage;
    }

    /**
     * @param percentage
     */
    public void setPercentage(Float percentage) {
        this.percentage = percentage;
    }
}